import request from '../index.js'

// 邮箱注册
export const refisterByEmail = (params) => request.post("/user/register", params);
// 发送验证码
export const sendCodeToEmail = (params) => request.post("/ems/send", params);
// 邮箱登录
export const loginByEmail = (params) => request.post("/user/login", params);
// 钱包登录
export const loginByWallet = (params) => request.post("/user/toLogin", params);
// 钱包登录差一个接口

// 邮箱登录忘记密码
export const loginByEmailForget = (params) => request.post("/user/resetpwd", params);

// 注册--新
export const registerNew = (params) => request.post("/user/register_n", params);
// 登录--新
export const loginNew = (params) => request.post("/user/login_n", params);
// 校验钱包签名
export const checkWalletSign = (params) => request.post("/demo/verify", params);